.PHONY: test clean distclean

test:
	erlc -I../../.. -DECT_UPGRADE_MODE\=mode2 tester.erl
	erl -pz ../../../ect/ebin/ -pz ./. -s tester do_test_sh -noshell
	erlc -I../../.. -DECT_UPGRADE_MODE\=mode1 tester.erl
	erl -pz ../../../ect/ebin/ -pz ./. -s tester do_test_sh -noshell


clean:
	rm -f *.beam
	rm -f *.ectgen.erl

distclean:
	rm -f *~
